//
//  gameScreen.cpp
//  CodeLab2013_prep08
//
//  Created by Matthew Parker on 4/1/13.
//
//

#include "gameScreen.h"
#include "testApp.h"

gameScreen::gameScreen():
screen(){
    font.loadFont("verdana.ttf", 24);
    str = "Welcome to the worse game\nPress 'w' to win!";
}

void gameScreen::setup(){
    
}

void gameScreen::update(){
    
}

void gameScreen::draw(){
    ofBackground(125, 125, 255);
    
    ofSetColor(0);
    font.drawString(str, 200, 200);
}

void gameScreen::keyPressed(int key){
    
    if(key == 119){
        testApp* app = (testApp*)ofGetAppPtr();
        app->currentScreen = &app->end;
    }
}
